package com.qianfeng.shopping.dao;

import com.qianfeng.shopping.entity.Account;

import java.util.List;
import java.util.Map;

public interface AccountDao {
	// 登录方法
	public abstract Account login(Account account);	
	boolean register(Account account);
	boolean checkAccountName(String accountName);
	Map<String,Account> selectAll();
	Map<String,Account> select(String key);
	boolean checkAccountId(String id);
	boolean delete(String id) ;
	boolean update(Account account);
	// 模拟要求创建实现批量删除
	int deleteBatch(String[] arr);
	Account selectAccount(String id);
}
